package com.victor.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * banner表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "banner")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Banner implements Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// id

	@Column(name = "banner_photopath", length = 500)
	private String banner_photopath;// 图片

	@Column(name = "banner_type", length = 50)
	private String banner_type;// 类型（跳转还是成长方案）0.跳转链接 1.成长方案

	@Column(name = "banner_jumpurl", length = 50)
	private String banner_jumpurl;// 跳转网址

	@Column(name = "introduce_photopath", length = 500)
	private String introduce_photopath;// 介绍页图片

	@Column(name = "opening_price", length = 50)
	private String opening_price;// 开通价格
	
	@Transient
	private List<BannerToGrowplan> bannertogrowplan;
	
	private static final long serialVersionUID = 1L;
}
